package com.xuecheng.api.media.model;

import com.xuecheng.common.domain.response.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

/**
 * <p></p>
 *
 * @Description:
 */
@Api(value = "媒资管理", tags = "媒资管理API",description = "对媒资信息进行管理")
public interface MediaApi {


    @ApiOperation("获得媒资信息预览资源地址")
    @ApiImplicitParam(name="mediaId",value = "媒资id值",required = true,dataType = "Long",paramType = "path")
    String previewMedia(Long mediaId);

    @ApiOperation("根据Id查询媒资信息")
    @ApiImplicitParam(name = "mediaId",
            value = "媒资ID", required = true,
            dataType = "long", paramType = "path", example = "1")
    RestResponse getMediaById(Long mediaId);
}